
<% if current_user.has_role?(:system_management) %>
<li class="">
  <a href="#" class="dropdown-toggle">
    <i class="menu-icon fa fa-desktop"></i>
    <span class="menu-text">系统管理</span>
    <b class="arrow fa fa-angle-down"></b>
  </a>
  <b class="arrow"></b>
  <ul class="submenu">

    <% if current_user.has_role?(:system_management) %>

        <li class="">
          <a data-href="<%= userinfos_path %>">
            <i class="menu-icon fa fa-caret-right"></i>
            单位管理
          </a>
          <b class="arrow"></b>
        </li>
        <!--
        <li class="">
          <a data-href="/roles">
            <i class="menu-icon fa fa-caret-right"></i>
            角色管理
          </a>
          <b class="arrow"></b>
        </li>
        -->
    <% end %>

  </ul>
</li>
<% end %>



<!--

<% if current_user.has_role?(:system_management) %>
    <li class="">
      <a href="#" class="dropdown-toggle">
        <i class="menu-icon fa fa-desktop"></i>
        <span class="menu-text">系统管理</span>
        <b class="arrow fa fa-angle-down"></b>
      </a>

      <b class="arrow"></b>
      <ul class="submenu">
        <li class="">
          <a data-href="<%= admin_users_path %>">
            <i class="menu-icon fa fa-caret-right"></i>
            用户管理
          </a>
          <b class="arrow"></b>
        </li>

        <li class="">
          <a data-href="/userinfos/<%= current_user['userinfo_id'] %>/edit/">
            <i class="menu-icon fa fa-caret-right"></i>
            基本信息维护
          </a>
          <b class="arrow"></b>
        </li>

      </ul>
    </li>
<% end %>

-->